package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2022-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("inventory_log")
@ApiModel(value="InventoryLog对象", description="")
public class InventoryLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("仓库id")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty("库存物品id")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty("数量")
    @TableField("goods_amount")
    private String goodsAmount;

    @ApiModelProperty("价格")
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @ApiModelProperty("出入类型 1 采购入库 2 出库")
    @TableField("stock_state")
    private Integer stockState;

    @ApiModelProperty("采购单id")
    @TableField("subscribe_id")
    private Integer subscribeId;

    @ApiModelProperty("采购单列表id")
    @TableField("purchase_orders_id")
    private Integer purchaseOrdersId;

    @TableField("remark")
    private String remark;

    @ApiModelProperty("操作人")
    @TableField("creator_by")
    private String creatorBy;

    @ApiModelProperty("时间")
    @TableField("creation_time")
    private Date creationTime;

    @ApiModelProperty(value = "计划采购编号")
    @TableField("planned_number")
    private String plannedNumber;

    @ApiModelProperty(value = "计划采购id")
    @TableField("planned_id")
    private Integer PlannedId;

    @ApiModelProperty(value = "采购人id")
    @TableField("purchaser_id")
    private Integer PurchaserId;


    @ApiModelProperty(value = "采购渠道")
    @TableField("channel_id")
    private Integer channelId;

    @ApiModelProperty(value = "结存编号")
    @TableField("balance_msg")
    private String balanceMsg;

    @ApiModelProperty("报销")
    private Integer reimburse;

    @ApiModelProperty("采购编号")
    @TableField(exist = false)
    private String ordersNumber;

    @ApiModelProperty("部门id")
    @TableField(exist = false)
    private Integer departmentId;

    @ApiModelProperty("物品名称")
    @TableField(exist = false)
    private String commodityName;

}
